<script setup lang="ts">
import ChildOne from '@/components/ChildOne.vue';
import { ref } from 'vue';

const money = ref(100)
const car = ref('自行车')
const house = ref('农村大平层')
</script>

<template>
  <div class="father">
    父组件-钱包:{{ money }}
    <!-- <ChildOne :model-value="money" @update:modelValue="money += $event" /> -->

    <!-- :car="car" @update:car="car = $event"  -->
    <ChildOne v-model="money" v-model:car="car" v-model:house="house" />
  </div>
</template>

<style scoped>
.father {
  width: 600px;
  height: 600px;
  background-color: orange;
}
</style>